StorageDomain

class StorageDomain : Domain

StorageDomain represents Storage protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Functions

cacheStorageContentUpdated
Link copied to clipboard
fun cacheStorageContentUpdated(): Flowable<CacheStorageContentUpdatedEvent>
A cache's contents have been modified.
cacheStorageListUpdated
Link copied to clipboard
fun cacheStorageListUpdated(): Flowable<CacheStorageListUpdatedEvent>
A cache has been added/deleted.
clearCookies
Link copied to clipboard
fun clearCookies(input: ClearCookiesRequest): Single<RequestResponseFrame>
Clears cookies.
clearDataForOrigin
Link copied to clipboard
fun clearDataForOrigin(input: ClearDataForOriginRequest): Single<RequestResponseFrame>
Clears storage for origin.
description
Link copied to clipboard
fun description(): String
Returns domain description.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getCookies
Link copied to clipboard
fun getCookies(input: GetCookiesRequest): Single<GetCookiesResponse>
Returns all browser cookies.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getTrustTokens
Link copied to clipboard
fun getTrustTokens(): Single<GetTrustTokensResponse>
Returns the number of stored Trust Tokens per issuer for the current browsing context.
getUsageAndQuota
Link copied to clipboard
fun getUsageAndQuota(input: GetUsageAndQuotaRequest): Single<GetUsageAndQuotaResponse>
Returns usage and quota in bytes.
indexedDBContentUpdated
Link copied to clipboard
fun indexedDBContentUpdated(): Flowable<IndexedDBContentUpdatedEvent>
The origin's IndexedDB object store has been modified.
indexedDBListUpdated
Link copied to clipboard
fun indexedDBListUpdated(): Flowable<IndexedDBListUpdatedEvent>
The origin's IndexedDB database list has been modified.
name
Link copied to clipboard
fun name(): String
Returns domain name.
overrideQuotaForOrigin
Link copied to clipboard
fun overrideQuotaForOrigin(input: OverrideQuotaForOriginRequest): Single<RequestResponseFrame>
Override quota for the specified origin
setCookies
Link copied to clipboard
fun setCookies(input: SetCookiesRequest): Single<RequestResponseFrame>
Sets given cookies.
trackCacheStorageForOrigin
Link copied to clipboard
Registers origin to be notified when an update occurs to its cache storage list.
trackIndexedDBForOrigin
Link copied to clipboard
fun trackIndexedDBForOrigin(input: TrackIndexedDBForOriginRequest): Single<RequestResponseFrame>
Registers origin to be notified when an update occurs to its IndexedDB.
untrackCacheStorageForOrigin
Link copied to clipboard
Unregisters origin from receiving notifications for cache storage.
untrackIndexedDBForOrigin
Link copied to clipboard
Unregisters origin from receiving notifications for IndexedDB.

Sources

jvm source
Link copied to clipboard